package lanqiao;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class test10 {
    //1371 回文判断
    public static void main(String[] args) {
        Scanner scan= new Scanner(System.in);
        String str = scan.next();
        char[] chars = str.toCharArray();
        StringBuilder sb=new StringBuilder();
        for (int i = chars.length-1; i >= 0; i--) {
            sb.append(chars[i]);
        }
//        String s = sb.toString();
        String newstr=new String(sb);
        if(newstr.equals(str)){
            System.out.println("Y");
        }
        else {
            System.out.println("N");
        }


    }
}
